<html>
<script>
chrome.tabs.onAttached.addListener(function(tabId, attachInfo) 
{
  console.log("TAB ATTACHED");
  console.log("Tab ID: " + tabId);
});

chrome.tabs.onCreated.addListener(function(tab) 
{
  console.log("TAB CREATED");
});

chrome.tabs.onDetached.addListener(function(tabId, attachInfo) 
{
  console.log("TAB DETACHED");
  console.log("Tab ID: " + tabId);
});

chrome.tabs.onMoved.addListener(function(tabId, moveInfo) 
{
  console.log("TAB MOVED");
});

chrome.tabs.onRemoved.addListener(function(tabId, removeInfo) 
{
	console.log("TAB REMOVED");
});

chrome.tabs.onSelectionChanged.addListener(function(tabId, selectInfo) 
{
	console.log("TAB SELECTION CHANGED");
});

chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) 
{
  console.log("TAB UPDATED");
});
</script>
</html>
